package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"srv/retaiersclient"
)

type ServiceContext struct {
	Config config.Config
	Reta   retaiersclient.Retaiers
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Reta:   retaiersclient.NewRetaiers(zrpc.MustNewClient(c.Reta)),
	}
}
